/**
 */
package com.yunda.AJDeviceService.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.yunda.AJDeviceService.common.web.domain.AjaxResult;
import com.yunda.AJDeviceService.data.IntelligentCheckDetailData;
import com.yunda.AJDeviceService.data.entity.QueryCountParam;
import com.yunda.AJDeviceService.data.vo.QueryCountVo;
import com.yunda.AJDeviceService.service.DetailDataService;
import com.yunda.AJDeviceService.service.QueryDataService;

/**
 * AJDeviceService
 * @description
 * @author ljc
 * @create 2023年2月14日 上午10:38:54
 */
@RestController
public class QueryDataController {
	
	@Autowired
	private QueryDataService queryDataService;
	@Autowired
	private DetailDataService detailDataService;
	
	@RequestMapping(value="/queryCountData", method=RequestMethod.POST)
	public AjaxResult queryCountData(@RequestBody QueryCountParam param) {
		
		List<QueryCountVo> list=queryDataService.queryCountData(param);
		return AjaxResult.success(list);
	}
	
	@RequestMapping(value="/queryDetailData", method=RequestMethod.POST)
	public AjaxResult queryDetailData(@RequestBody  IntelligentCheckDetailData param) {
		
		List<IntelligentCheckDetailData> list=detailDataService.selectDetailData(param);
		return AjaxResult.success(list);
	}

}
